﻿using System;
using System.Collections.Generic;
using Lottery.App.Model;

namespace Lottery.App.DAL
{
    public class N6Dao : ResultDao<N6Info>
    {
        public override IList<int> GetIds(string value)
        {
            const string hql = "select r.id from RecordInfo r where ASC_Result in (:val) order by r.id";

            return Session.CreateQuery(hql)
                .SetParameterList("val", Utils.Get6P5(value))
                .List<int>();
        }

    }
}
